xcb_dep = dependency('xcb', required : true)
xcb_shm_dep = dependency('xcb-shm', required : true)
xcb_damage_dep = dependency('xcb-damage')
xcb_xfixes_dep = dependency('xcb-xfixes')
xcb_xkb_dep = dependency('xcb-xkb')
xcb_xtest_dep = dependency('xcb-xtest')
gtk3_dep = dependency('gtk+-3.0')

x11spice_srcs = [
    'agent.c',
    'agent.h',
    'display.c',
    'display.h',
    'listen.c',
    'listen.h',
    'gui.c',
    'gui.h',
    'options.c',
    'options.h',
    'scan.c',
    'scan.h',
    'session.c',
    'session.h',
    'spice.c',
    'local_spice.h',
    'x11spice.h',
    'main.c',
]

executable('x11spice',
  x11spice_srcs,
  #install : false,
  include_directories : spice_server_include,
  dependencies : [xcb_dep, xcb_shm_dep, xcb_damage_dep, xcb_xfixes_dep, xcb_xkb_dep, xcb_xtest_dep, gtk3_dep, spice_server_dep]
)
